<!DOCTYPE html>
<html>
<head>
     <meta charset="UTF-8" />
  <title>查找元素</title>
  <style>
    body { font-family: Arial, sans-serif; padding: 10px; }
    input { width: 200px; }
    button { margin-top: 10px; }
  </style>
</head>
<body>
  <button id="closeBtn">关闭</button>
  <h3>输入 target label</h3>
  <input type="text" id="targetlabel" placeholder="例如：div,button..." />
  <h3>输入elementName</h3>
  <input type="text" id="elementName" placeholder="例如：class,id,data-id..." />
  <h3>输入value</h3>
  <input type="text" id="elementVal" placeholder="例如：29004" />
  <br />
  <button id="findBtn">查找并插入</button>

  <script src="popup.js"></script>
  <script>
    document.getElementById('closeBtn').addEventListener('click', () => {
      window.close();
    });
  </script>
</body>
</html>
